package com.cn.news.mapper;

import com.cn.common.pojo.NewsModel;


import java.util.List;

public interface NewsDao {
    List<NewsModel> newsForId(int id);
    List<NewsModel> newsForNews();
    List<NewsModel> newsByType(int type);
    List<NewsModel> news();
    int delete(int id);
    int update(NewsModel newsModel);
    int insert(NewsModel newsModel);
    int enable(int id);
    NewsModel findById(int id);
    List<NewsModel> limit(NewsModel newsModel);
    int count(NewsModel newsModel);
}
